package com.ilas.dao;

import com.ilas.entity.TenantInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 注册用户(TenantInfo)表数据库访问层
 *
 * @author bob
 * @since 2020-09-19 17:31:20
 */
@Component
public interface TenantInfoDao {

    TenantInfo getById(Long id);

    TenantInfo get(Long id);

    TenantInfo getByTenantCode(@Param("tenantCode") String tenantCode);

    List<TenantInfo> findList();

    TenantInfo findListById(List<Long> ids);

    Integer tenantCount();

    int insert(TenantInfo tenant);

    int update(TenantInfo tenant);

    int delete(TenantInfo tenant);

    int deleteAll(List<Long> ids);
}
